package com.geovis.emergency.spd.entity.system.pojo.dto;

import cn.hutool.core.bean.BeanUtil;
import com.geovis.emergency.spd.entity.system.entity.SystemAdminUser;
import com.geovis.emergency.spd.entity.system.entity.SystemUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "SystemAdminUserSaveDTO", description = "管理员信息表保存DTO")
public class SystemAdminUserSaveDTO  {

    @ApiModelProperty(value = "真名", required = true)
    @NotBlank(message = "真名不能为空")
    @Length(max = 24, message = "最长不能超过{24}个字符")
    private String realName;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    @Length(max = 11, message = "最长不能超过{11}个字符")
    private String phone;


}
